﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="tsDataSet" targetNamespace="http://tempuri.org/tsDataSet.xsd" xmlns:mstns="http://tempuri.org/tsDataSet.xsd" xmlns="http://tempuri.org/tsDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection ConnectionStringObject="Data Source=epm2007demo;Initial Catalog=ProjectServer2007_Litware_Reporting;Integrated Security=True" IsAppSettingsProperty="False" Modifier="Assembly" Name="epm2007demo.ProjectServer2007_Litware_Reporting.dbo" ParameterPrefix="@" Provider="System.Data.SqlClient">
          </Connection>
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tsAutoStatusTableAdapter" GeneratorDataComponentClassName="tsAutoStatusTableAdapter" Name="tsAutoStatus" UserDataComponentName="tsAutoStatusTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="epm2007demo.ProjectServer2007_Litware_Reporting.dbo" DbObjectName="ProjectServer2007_Litware_Reporting.dbo.tsAutoStatus" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="False">
                    <CommandText>DELETE FROM [dbo].[tsAutoStatus] WHERE (([ID] = @Original_ID) AND ([siteGuid] = @Original_siteGuid) AND ([tsGuid] = @Original_tsGuid) AND ([lcid] = @Original_lcid) AND ([userName] = @Original_userName) AND ([dateCreated] = @Original_dateCreated) AND ((@IsNull_dateProcessed = 1 AND [dateProcessed] IS NULL) OR ([dateProcessed] = @Original_dateProcessed)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_siteGuid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="siteGuid" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_tsGuid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="tsGuid" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_lcid" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="lcid" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_userName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="userName" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dateCreated" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="dateCreated" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dateProcessed" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dateProcessed" SourceColumnNullMapping="True" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dateProcessed" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="dateProcessed" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="False">
                    <CommandText>INSERT INTO [dbo].[tsAutoStatus] ([siteGuid], [tsGuid], [lcid], [userName], [dateCreated], [dateProcessed]) VALUES (@siteGuid, @tsGuid, @lcid, @userName, @dateCreated, @dateProcessed);
SELECT ID, siteGuid, tsGuid, lcid, userName, dateCreated, dateProcessed FROM tsAutoStatus WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@siteGuid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="siteGuid" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@tsGuid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="tsGuid" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@lcid" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="lcid" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@userName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="userName" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dateCreated" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="dateCreated" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dateProcessed" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="dateProcessed" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="True">
                    <CommandText>SELECT ID, siteGuid, tsGuid, lcid, userName, dateCreated, dateProcessed FROM dbo.tsAutoStatus</CommandText>
                    <Parameters>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="False">
                    <CommandText>UPDATE [dbo].[tsAutoStatus] SET [siteGuid] = @siteGuid, [tsGuid] = @tsGuid, [lcid] = @lcid, [userName] = @userName, [dateCreated] = @dateCreated, [dateProcessed] = @dateProcessed WHERE (([ID] = @Original_ID) AND ([siteGuid] = @Original_siteGuid) AND ([tsGuid] = @Original_tsGuid) AND ([lcid] = @Original_lcid) AND ([userName] = @Original_userName) AND ([dateCreated] = @Original_dateCreated) AND ((@IsNull_dateProcessed = 1 AND [dateProcessed] IS NULL) OR ([dateProcessed] = @Original_dateProcessed)));
SELECT ID, siteGuid, tsGuid, lcid, userName, dateCreated, dateProcessed FROM tsAutoStatus WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@siteGuid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="siteGuid" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@tsGuid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="tsGuid" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@lcid" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="lcid" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@userName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="userName" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dateCreated" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="dateCreated" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dateProcessed" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="dateProcessed" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_siteGuid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="siteGuid" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_tsGuid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="tsGuid" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_lcid" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="lcid" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_userName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="userName" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dateCreated" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="dateCreated" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dateProcessed" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dateProcessed" SourceColumnNullMapping="True" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dateProcessed" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="dateProcessed" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="ID" ColumnName="ID" DataSourceName="ProjectServer2007_Litware_Reporting.dbo.tsAutoStatus" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="siteGuid" DataSetColumn="siteGuid" />
              <Mapping SourceColumn="tsGuid" DataSetColumn="tsGuid" />
              <Mapping SourceColumn="lcid" DataSetColumn="lcid" />
              <Mapping SourceColumn="userName" DataSetColumn="userName" />
              <Mapping SourceColumn="dateCreated" DataSetColumn="dateCreated" />
              <Mapping SourceColumn="dateProcessed" DataSetColumn="dateProcessed" />
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
            </Mappings>
            <Sources>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources>
        </Sources>
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="tsDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="tsDataSet" msprop:Generator_DataSetName="tsDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="tsAutoStatus" msprop:Generator_UserTableName="tsAutoStatus" msprop:Generator_RowDeletedName="tsAutoStatusRowDeleted" msprop:Generator_RowChangedName="tsAutoStatusRowChanged" msprop:Generator_RowClassName="tsAutoStatusRow" msprop:Generator_RowChangingName="tsAutoStatusRowChanging" msprop:Generator_RowEvArgName="tsAutoStatusRowChangeEvent" msprop:Generator_RowEvHandlerName="tsAutoStatusRowChangeEventHandler" msprop:Generator_TableClassName="tsAutoStatusDataTable" msprop:Generator_TableVarName="tabletsAutoStatus" msprop:Generator_RowDeletingName="tsAutoStatusRowDeleting" msprop:Generator_TablePropName="tsAutoStatus">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="siteGuid" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_UserColumnName="siteGuid" msprop:Generator_ColumnVarNameInTable="columnsiteGuid" msprop:Generator_ColumnPropNameInRow="siteGuid" msprop:Generator_ColumnPropNameInTable="siteGuidColumn" type="xs:string" />
              <xs:element name="tsGuid" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_UserColumnName="tsGuid" msprop:Generator_ColumnVarNameInTable="columntsGuid" msprop:Generator_ColumnPropNameInRow="tsGuid" msprop:Generator_ColumnPropNameInTable="tsGuidColumn" type="xs:string" />
              <xs:element name="lcid" msprop:Generator_UserColumnName="lcid" msprop:Generator_ColumnVarNameInTable="columnlcid" msprop:Generator_ColumnPropNameInRow="lcid" msprop:Generator_ColumnPropNameInTable="lcidColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="userName" msprop:Generator_UserColumnName="userName" msprop:Generator_ColumnVarNameInTable="columnuserName" msprop:Generator_ColumnPropNameInRow="userName" msprop:Generator_ColumnPropNameInTable="userNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" />
              <xs:element name="dateProcessed" msprop:Generator_UserColumnName="dateProcessed" msprop:Generator_ColumnVarNameInTable="columndateProcessed" msprop:Generator_ColumnPropNameInRow="dateProcessed" msprop:Generator_ColumnPropNameInTable="dateProcessedColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="ID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInTable="IDColumn" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tsAutoStatus" />
      <xs:field xpath="mstns:dateProcessed" />
    </xs:unique>
    <xs:unique name="Constraint2">
      <xs:selector xpath=".//mstns:tsAutoStatus" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>